import request from '@/utils/request'

// 查询客户信息列表
export function listModule(query) {
  return request({
    url: '/management/userModule/userModuleUpdateList',
    method: 'post',
    data: query
  })
}

// 查询客户信息详细
export function getModule(id) {
  return request({
    url: '/system/module/' + id,
    method: 'get'
  })
}

// 新增客户信息
export function addModule(data) {
  return request({
    url: '/management/userModule/userModuleAdd',
    method: 'post',
    data: data
  })
}

// 修改客户信息
export function updateModule(data) {
  return request({
    url: '/system/module',
    method: 'put',
    data: data
  })
}

// 删除客户信息
export function delModule(id) {
  return request({
    url: '/management/userModule/logicalDeletion/' + id,
    method: 'post'
  })
}
//登录
export function login(data) {
  return request({
    url: '/management/userModule/login',
    method: 'post',
    data: data
  })
}


export function getAddressByLocation(data) {
  return request({
    url: 'aMap/amap/getAddressByLocation/' +data,
    method: 'post'
  })
}



export function orderInterface(data) {
  return request({
    url: '/management/order/orderInterface',
    method: 'post',
    data:data
  })
}


export function queryCarLevelAll() {
  return request({
    url: '/management/order/queryCarLevelAll',
    method: 'post'
  })
}

export function orderNumber() {
  return request({
    url: '/management/order/orderNumber',
    method: 'post'
  })
}




export function getOrderByOrderNumber(id) {
  return request({
    url: '/management/order/getSelectByUserId/'+id,
    method: 'get'
  })
}

export function updateUserReach(id) {
  return request({
    url: '/management/order/updateUserReach/'+id,
    method: 'get'
  })
}
export function getCancelOrder(data) {
  return request({
    url: '/management/order/getCancelOrder',
    method: 'post',
    data:data
  })
}
export function ailpays(data) {
  return request({
    url: '/onLineCar-pay/pay/ailpay',
    method: 'post',
    data:data
  })
}
export function balancePayment(data) {
  return request({
    url: '/management/order/balancePayment',
    method: 'post',
    data:data
  })
}





